<?php
Breadcrumbs::register('home', function($breadcrumbs) {
    $breadcrumbs->push('首页', route('admin.dashboard'));
});

Breadcrumbs::register('dashboard', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('控制面板', route('dashboard'));
});

Breadcrumbs::register('user-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('用户', route('admin.users.index'));
});
Breadcrumbs::register('user-edit', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('用户', route('admin.users.index'));
		$breadcrumbs->push('编辑用户资料');
});
Breadcrumbs::register('article-class-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('文章分类', route('admin.article_class.index'));
});
Breadcrumbs::register('article-class-create', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('文章分类', route('admin.article_class.index'));
    $breadcrumbs->push('新添文章分类');
});
Breadcrumbs::register('article-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('文章', route('admin.article.index'));
});
Breadcrumbs::register('article-create', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('文章', route('admin.article.index'));
    $breadcrumbs->push('新添文章');
});
Breadcrumbs::register('article-edit', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('文章', route('admin.article.edit'));
    $breadcrumbs->push('编辑文章');
});
Breadcrumbs::register('promotion-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('活动', route('admin.promotion.index'));
});
Breadcrumbs::register('promotion-create', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('活动', route('admin.promotion.index'));
    $breadcrumbs->push('添加活动');
});
Breadcrumbs::register('promotion-edit', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('活动', route('admin.promotion.index'));
    $breadcrumbs->push('编辑活动');
});

Breadcrumbs::register('circle-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('圈子', route('admin.circle.index'));
    $breadcrumbs->push('圈子列表');
});
Breadcrumbs::register('circle-edit', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('圈子', route('admin.circle.index'));
    $breadcrumbs->push('修改圈子');
});
Breadcrumbs::register('circle-members-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('圈子', route('admin.circle.index'));
    $breadcrumbs->push('圈子成员');
});
Breadcrumbs::register('circle-posts-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('圈子', route('admin.circle.index'));
    $breadcrumbs->push('圈子帖子');
});
Breadcrumbs::register('post-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('问律师', route('admin.circle.index'));
    $breadcrumbs->push('帖子列表');
});

Breadcrumbs::register('join-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('活动', route('admin.promotion.index'));
    $breadcrumbs->push('报名');
});
Breadcrumbs::register('join-edit', function($breadcrumbs, $promotion_id) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('活动', route('admin.promotion.index'));
    $breadcrumbs->push('报名', route('admin.join.index', $promotion_id));
    $breadcrumbs->push('详情');
});
Breadcrumbs::register('product-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('商品管理');
});
Breadcrumbs::register('product-create', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('商品管理', route('admin.product.index'));
    $breadcrumbs->push('添加商品');
});
Breadcrumbs::register('product-edit', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('商品管理', route('admin.product.index'));
    $breadcrumbs->push('修改商品');
});
Breadcrumbs::register('product-category-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('商品分类管理');
});
Breadcrumbs::register('product-category-create', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('商品分类管理', route('admin.product_category.index'));
    $breadcrumbs->push('添加商品分类');
});
Breadcrumbs::register('product-category-edit', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('商品分类管理', route('admin.product_category.index'));
    $breadcrumbs->push('修改商品分类');
});
Breadcrumbs::register('product-spec-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('商品属性管理');
});
Breadcrumbs::register('product-spec-create', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('商品属性管理', route('admin.product_spec.index'));
    $breadcrumbs->push('添加商品属性');
});
Breadcrumbs::register('product-spec-edit', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('商品属性管理', route('admin.product_spec.index'));
    $breadcrumbs->push('修改商品属性');
});
Breadcrumbs::register('order-index', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('订单管理');
});
Breadcrumbs::register('order-update', function($breadcrumbs) {
    $breadcrumbs->parent('home');
    $breadcrumbs->push('订单管理', route('admin.order.index'));
    $breadcrumbs->push('订单更新');
});

